<template>
	<view>
		<cu-custom bgColor="bg-cyan" isBack>
			<block slot="content">text文本编辑</block>
		</cu-custom>
		<view class="smart-page-head">
			<view class="smart-page-head-title">
				rich-text文本组件
			</view>
		</view>
		<view class="smart-padding-wrap">
			<view>
				<rich-text :nodes="nodes"></rich-text>
			</view>
			<view>
				<rich-text :nodes="strings"></rich-text>
			</view>
		</view>
	</view>
</template>

<script>
	export dataIt{
		data(){
			return{
				nodes:[
					{
						name:'div',
						attrs:{
							class:'div-class',
							style:"line-height:60upx;color:red;text-align:center;background:#09BB07;"
						},
						children:[
							{
								type:'text',
								text:"Hello&nbsp;&nbsp;uniapp!"
							}
						]
					}
					
				],
				Strings:'<div style="text-align:center;margin-top:50upx;"><img src="/static/logo.png><div>"'
			}
		}
	}
</script>

<style>
</style>